import request from '@/utils/request'

let tuiguangApi = {

  // 生成推广链接
  addUserPromotionLinks(data) {
    return request({
      url: `/userLinks`,
      method: 'post',
      data:data
    })
  },

  // 查询推广链接
  getUserPromotionLinks(data) {
    return request({
      url: `/userLinks/byUserId`,
      method: 'get',
      params:data
    })
  },

  // 查询下级商户
  userLinksOrderList(data) {
    return request({
      url: `/userLinksOrder/list`,
      method: 'get',
      params:data
    })
  },

}
export default tuiguangApi

